gdk: Drop pass-through surfaces
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Apr 2019 16:33:22 +0000 (16:33 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:14 +0000 (20:25 +0000)
With client-side windows gone, this property
is no longer used at all, and has been replaced
by a similar concept on the widget level.
Drop it.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkinternals.h
gdk/gdksurface.c
gdk/gdksurface.h

index 9d98cf6641d0df69ca57bbad300b6d402833fe6a..38683fd47980e3bf9700ef15a0880640613db9c5 100644 (file)
@@ -206,8 +206,6 @@ gdk_surface_set_fullscreen_mode
 gdk_surface_set_keep_above
 gdk_surface_set_keep_below
 gdk_surface_set_opacity
-gdk_surface_set_pass_through
-gdk_surface_get_pass_through
 gdk_surface_move
 gdk_surface_resize
 gdk_surface_move_resize
index fd23582988b21357b7d716ebcb49b2b3764ec628..cd01ff8d838998608bdd4e2363b36853c12ae652 100644 (file)
@@ -150,7 +150,6 @@ struct _GdkSurface
   guint8 alpha;
   guint8 fullscreen_mode;
 
-  guint pass_through : 1;
   guint modal_hint : 1;
 
   guint destroyed : 2;
index 74ad7af7562e8f3c8aee5fd15f4552dc613ca125..c3dadf73ad6e537c63ca64cb2e8ad4baa1bb1f1e 100644 (file)
@@ -2316,56 +2316,6 @@ gdk_surface_set_child_input_shapes (GdkSurface *surface)
   do_child_input_shapes (surface, FALSE);
 }
 
-/**
- * gdk_surface_set_pass_through:
- * @surface: a #GdkSurface
- * @pass_through: a boolean
- *
- * Sets whether input to the surface is passed through to the surface
- * below.
- *
- * The default value of this is %FALSE, which means that pointer
- * events that happen inside the surface are send first to the surface,
- * but if the event is not selected by the event mask then the event
- * is sent to the parent surface, and so on up the hierarchy.
- *
- * If @pass_through is %TRUE then such pointer events happen as if the
- * surface wasn't there at all, and thus will be sent first to any
- * surfaces below @surface. This is useful if the surface is used in a
- * transparent fashion. In the terminology of the web this would be called
- * "pointer-events: none".
- *
- * Note that a surface with @pass_through %TRUE can still have a subsurface
- * without pass through, so you can get events on a subset of a surface. And in
- * that cases you would get the in-between related events such as the pointer
- * enter/leave events on its way to the destination surface.
- **/
-void
-gdk_surface_set_pass_through (GdkSurface *surface,
-                              gboolean   pass_through)
-{
-  g_return_if_fail (GDK_IS_SURFACE (surface));
-
-  surface->pass_through = !!pass_through;
-}
-
-/**
- * gdk_surface_get_pass_through:
- * @surface: a #GdkSurface
- *
- * Returns whether input to the surface is passed through to the surface
- * below.
- *
- * See gdk_surface_set_pass_through() for details
- **/
-gboolean
-gdk_surface_get_pass_through (GdkSurface *surface)
-{
-  g_return_val_if_fail (GDK_IS_SURFACE (surface), FALSE);
-
-  return surface->pass_through;
-}
-
 /**
  * gdk_surface_merge_child_input_shapes:
  * @surface: a #GdkSurface
index 155418f4ff6602c8765c395eaa8e03bb31eea754..e1e0c53d0d89eb2dbd5aee3d4add570b53ca0372 100644 (file)
@@ -511,13 +511,6 @@ void gdk_surface_set_child_input_shapes     (GdkSurface       *surface);
 GDK_AVAILABLE_IN_ALL
 void gdk_surface_merge_child_input_shapes   (GdkSurface       *surface);
 
-
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_set_pass_through (GdkSurface *surface,
-                                   gboolean   pass_through);
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_surface_get_pass_through (GdkSurface *surface);
-
 /*
  * Check if a surface has been shown, and whether all its
  * parents up to a toplevel have been shown, respectively.